using TableTools.Handlers;
using TableTools.Models;

namespace TableTools.Services;

public class DocxToTableService  : ITableService
{
    private readonly DocxTableHandler handler;

    public DocxToTableService(DocxTableHandler handler)
    {
        this.handler = handler;
    }

    public async Task<TableResult> ToTableAsync(string path)
    {
        return handler.ToTable(path);
    }
}